<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插件</title>
    <script src="./js/vue.js"></script>
    <script src="./26.plugins.js"></script>
</head>
<body>
    <div class="box">
        <h1 v-upper="msg"></h1>
    </div>
    <script>
        //声明使用插件  因为在插件内部调用了对象的install
        Vue.use(MyPlugin);
        const vm = new Vue({
            el:'.box',
            data:{
                msg:'hello world!'
            }
        })
    </script>
</body>
</html>